//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.topvision.myviewtest.well.barcode;

public class HSMDecodeResult {
    private String barcodeData = "";
    private byte[] barcodeByteData = null;
    private String symbology = "";
    private Integer length = Integer.valueOf(0);
    private Long decodeTime = Long.valueOf(0L);
    private com.honeywell.barcode.BarcodeBounds bounds = null;
    private long symbologyId = 0L;
    private long symbologyExId = 0L;
    private int modifier = 0;
    private int modifierEx = 0;
    private char hhpCodeId = 0;
    private char aimCodeLetter = 0;
    private char aimModifier = 0;

    public HSMDecodeResult(byte[] data, int len, String sym, double decTime, com.honeywell.barcode.BarcodeBounds bnds, long[] symIds) {
        this.barcodeByteData = data;
        this.barcodeData = this.convertByteArrayToString(this.barcodeByteData);
        this.length = Integer.valueOf(len);
        this.symbology = sym;
        this.decodeTime = Long.valueOf((long)decTime);
        this.bounds = bnds;
        if(symIds.length == 7) {
            this.symbologyId = symIds[0];
            this.symbologyExId = symIds[1];
            this.modifier = (int)symIds[2];
            this.modifierEx = (int)symIds[3];
            this.hhpCodeId = (char)((int)symIds[4]);
            this.aimCodeLetter = (char)((int)symIds[5]);
            this.aimModifier = (char)((int)symIds[6]);
        }

    }

    public String getBarcodeData() {
        return this.barcodeData;
    }

    public byte[] getBarcodeDataBytes() {
        return this.barcodeByteData;
    }

    public String getSymbology() {
        return this.symbology;
    }

    public Integer getBarcodeDataLength() {
        return this.length;
    }

    public Long getDecodeTime() {
        return this.decodeTime;
    }

    public com.honeywell.barcode.BarcodeBounds getBarcodeBounds() {
        return this.bounds;
    }

    public void setBarcodeBounds(com.honeywell.barcode.BarcodeBounds barcodeBounds) {
        this.bounds = barcodeBounds;
    }

    public Long getSymbologyId() {
        return Long.valueOf(this.symbologyId);
    }

    public Long getSymbologyIdEx() {
        return Long.valueOf(this.symbologyExId);
    }

    public Integer getModifierId() {
        return Integer.valueOf(this.modifier);
    }

    public Integer getModifierExId() {
        return Integer.valueOf(this.modifierEx);
    }

    public char getCodeId() {
        return this.hhpCodeId;
    }

    public char getAIMCodeLetter() {
        return this.aimCodeLetter;
    }

    public char getAIMModifier() {
        return this.aimModifier;
    }

    private String convertByteArrayToString(byte[] data) {
        try {
            return new String(this.barcodeByteData, "ISO-8859-1");
        } catch (Exception var3) {
            return "";
        }
    }
}
